<template>
  <van-nav-bar title="首页" />
  <div>主应用首页</div>
  <div class="home" @click="tohomeA">点击跳到小程序A</div>
  <div class="home" @click="tohomeB">点击跳到小程序B</div>
</template>

<script setup>
import router from "@/router";

// 跳转到小程序A
function tohomeA() {
  router.push("/SmallAppA");
}
// 跳转到小程序B
function tohomeB() {
  router.push("/SmallAppB");
}
</script>

<style scoped>
.home {
  color: blue;
}
</style>
